home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Visual Cafe Pro v1.0 / SOURCE.BIN / MonthSpinner.java < prev    next >
Encoding:
Java Source  |  1997-06-19  |  1.1 KB  |  47 lines

  1. package symantec.itools.awt.util.spinner;
  2.  
  3.  
  4. import symantec.itools.awt.ListSpinner;
  5.  
  6.  
  7. /**
  8.  * Month spin control.<br>
  9.  * Creates a text box, containing a list Months,
  10.  * with up and down arrows. Allows your user
  11.  * to move through a set of fixed values or type a valid value in the box.
  12.  *
  13.  * @see symantec.itools.awt.ListSpinner
  14.  *
  15.  * @version 1.0, Nov 26, 1996
  16.  *
  17.  * @author    Symantec
  18.  *
  19.  */
  20.  
  21.  
  22. public class MonthSpinner
  23.     extends ListSpinner
  24. {
  25.  
  26.     /**
  27.      * Construct MonthSpinner component.  This component includes
  28.      * the months in the order Janruary through December.  By default,
  29.      * the inial display of this component is the item "Janruary".
  30.      */
  31.     public MonthSpinner()
  32.     {
  33.         addItem("January");
  34.         addItem("Febuary");
  35.         addItem("March");
  36.         addItem("April");
  37.         addItem("May");
  38.         addItem("June");
  39.         addItem("July");
  40.         addItem("August");
  41.         addItem("September");
  42.         addItem("October");
  43.         addItem("November");
  44.         addItem("December");
  45.     }
  46. }
  47.